package com.csp.app.service;

import com.baomidou.mybatisplus.service.IService;
import com.csp.app.common.CacheService;
import com.csp.app.entity.Friend;
import com.csp.app.entity.User;

import java.util.List;

public interface UserService extends IService<User>, CacheService<User> {
    User login(User user);

    User register(User user);

    List<User> searchFriend(User user);

    User addFriend(Friend friend);

    List<User> selectAddedFriendById(Long id);
}
